from rest_framework import viewsets

from customauth.models import MyUser
from .serializers import UserSerializer


class UserViewSet(viewsets.ModelViewSet):
    """API endpoint that allows users to be viewed or edited."""

    queryset = MyUser.objects.all()
    serializer_class = UserSerializer
